package com.m115.m115browser;

import com.m115.m115browser.manager.SettingsManager;

import android.app.Application;
import android.content.SharedPreferences;

public class BrowserApplication extends Application {
	private static final String TAG = "BrowserApplication";
	private SharedPreferences mDefaultSharedPreferences;
	private static final String DEFAULT_SHARE_PREFERENCE_NAME = "browser.sp";

	@Override
	public void onCreate() {
		super.onCreate();
		mDefaultSharedPreferences = getSharedPreferences(
				DEFAULT_SHARE_PREFERENCE_NAME, MODE_WORLD_WRITEABLE);

		SettingsManager.init(this);
	}

	public SharedPreferences getDefaultSharePreference() {
		return mDefaultSharedPreferences;
	}

}
